RemoteCellObj
Wolfram Kernel
Execution environment
a remote representation of a notebook cell for evaluation Kernel
RemoteCellObj[uid_String] _RemoteCellObj
Methods
Delete
Deletes a given cell in the notebook
Self destruction
With[{cell = EvaluationCell[]},
EventHandler[InputButton["Bye"], Function[Null,
cell // Delete
]]
]
removes an input cell
EventHandler
There is an adapter for EventHandler
method. You can listen a cell's events from the evaluation Kernel
With[{cell = EvaluationCell[]},
EventHandler[cell, {any_ :> (Print[any, ": ", #]&)}];
]
listen all events from the input cell
Possible events
Normal cells
"Destroy"
when a cell was removed
Projected cells
See CellPrint with window Target
"Mounted"
fired once cell is mounted and is ready, returns WindowObj;
note
"Mounted"
can be fired multiple times in the case if a window was refreshed (or reconnected)
"Closed"
fired when user closes window (or connection breaks), returns WindowObj
Set
Use "Data"
field to mutate the content live
With[{cell = EvaluationCell[]},
cell["Data"] = "1+1"
]
warning
For now only works for input cells